package com.zhijiang.hospital.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhijiang.hospital.entity.ArrangerClass;
import com.zhijiang.hospital.entity.Checkin;
import com.zhijiang.util.BaseQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author fan
 * @description 针对表【CHECKIN】的数据库操作Mapper
 * @createDate 2023-01-30 11:41:59
 * @Entity generator.domain.Checkin
 */
@Mapper
@DS("master")
public interface CheckinMapper extends BaseMapper<Checkin> {

    void add(@Param("checkin") Checkin checkin);

    Integer get(@Param("checkin") Checkin checkin);

    List<Checkin> getList(@Param("start") String start, @Param("end") String ent);

    //查询
    List<Checkin> getCheckDate(@Param("dto") BaseQuery baseQuery);


    List<ArrangerClass> getCheckOne(@Param("empName") String empName, @Param("date1") Date date1, @Param("date2") Date date2);
}




